package cn.xspace.module.other.http.req;

import com.xspace.android.xafcommon.network.message.ARequestMsg;
import com.xspace.android.xafcommon.util.Constants;
import com.xspace.android.xafcommon.util.LogUtils;


public class UpgradeReq extends ARequestMsg {
	public String user_id="";
	public String departmentID;
	public String mobile;
	public String app_id;
	public String imei;
	public String baseband;
	public String osversion;
	public String manufacturer;
	public String mac="";
	public String cpuinfo;
	public String appversion;
	public String platform;
	public String area="";
	@Override
	public String getURL() {
		LogUtils.d("UpdateReq==>" + Constants.URL_APP_UPDATE);
		return Constants.URL_APP_UPDATE;
	}

	@Override
	protected String toJson() {
		return null;
	}

	@Override
	protected byte[] toBytes() {
		String value = "{uuid:\"" + user_id 
				+"\",department_id:\"" + departmentID
				+"\",mobile:\"" + mobile
				+"\",app_id:\"" + app_id
				+"\",imei:\"" + imei 
				+"\",baseband:\"" + baseband
				+"\",osversion:\"" + osversion
				+"\",manufacturer:\"" + manufacturer
				+"\",mac:\"" + mac
				+"\",cpuinfo:\"" + cpuinfo
				+"\",appversion:\"" + appversion
				+"\",area:\"" + area
				+ "\",platform:\"" + "0" + "\"}";
		LogUtils.d("UpdateReq==>" + value);
		return value.getBytes();
	}

}
